<%@page import="gandalf.model.Stranka"%>
<%@page import="gandalf.controller.StrankaJpaController"%>
<%@page contentType="text/html" pageEncoding="UTF-8"
        import="
        java.util.List,
        java.util.ArrayList"
        %>
<!DOCTYPE HTML>

<html>
    <head>
        <meta charset="utf-8">
        <title>Prodaja vstopnic - Gandalf</title>
        <link rel="stylesheet" href="css/style.css" type="text/css" media="screen, projection">
        <link rel="stylesheet" href="blueprint/src/forms.css" type="text/css" media="screen, projection">
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
        <script type="text/javascript" src="javascript/script.js"></script>
    </head>
     <%


                    Long idStranke = (Long) request.getSession().getAttribute("stranka_id");
                    StrankaJpaController strankaDao = new StrankaJpaController();
                    Stranka stranka = null;
                    if (idStranke != null) {
                        stranka = strankaDao.findStranka(idStranke);
                    }

        %>
    <body>

        <div id="header">
            <h1 id="logo">Gandalf</h1>
            <ul id="nav">
                <li><a href="index.jsp">Dogodki</a></li>
                <li><a href="mailto:gandalf_support@gmail.com">Kontakt</a></li>
                <li><a href="<%= stranka != null ? "logout.jsp" : "login.jsp"%>">
                        <%= stranka != null ? "Odjava" : "Prijava"%></a></li>
            </ul>
        </div><!-- header -->
        <div id="section" class="container">

            <form id="nova_vstopnica_form" action="Vstopnica" method="POST">
                <input type="hidden" name="naziv0" value="default">
                <input id="stevilo_vstopnic" type="hidden" name="steviloVstopnic" value="1">
                <ul id="vstopnice_list">
                    <li class="vstopnica">
                        <ul>
                            <li>
                                <label for="cena">Cena</label><br>
                                <input type="text" name="cena0" value="">
                            </li>
                            <li>
                                <label for="kolicina">Kolicina prostih vstopnic</label><br>
                                <input type="text" name="kolicina0" value="">
                            </li>
                        </ul>
                    </li>
                    <a href="#" id="dodaj_vstopnica_form">Dodaj še eno vrsto vstopnice</a>
                </ul>
                
                <input name="submit" type="submit" value="Shrani">
            </form>
        </div>
    </body>
</html>
